package com.csw.shuanfa.SuanFa;

import lombok.extern.slf4j.Slf4j;

import java.util.HashMap;

/**
 * @author 1
 */
@Slf4j
public class IterateMapMain {

    public static void main(String[] args) {
        HashMap<String, String> map = new HashMap<>(16);
        map.put("India", "Delhi");
        map.put("Japan", "Tokyo");
        map.put("France", "Paris");
        map.put("Russia", "Moscow");
        log.error("" + "Iterating java Iterator");
        for (String cc : map.keySet()) {
            map.put("Nepal", "KathMandu");
            log.error("" + cc);
        }
        log.error("" + "-----------------");
    }
}
